// web/src/app/(employee)/meet/employee/[id]/actions/getMeetInfo.ts
'use server';

import {db} from "@/lib/db";

export async function getMeetInfo({eid, hid, uid}: { eid: string, hid: string, uid: string }) {
    const e = await db.employee.findUnique({
        where: {id: eid}
    })
    const h = await db.hr.findUnique({
        where: {id: hid},
        include: {
            user: true
        }
    })
    const s = await db.student.findFirst({
        where: {
            userId: uid
        },
        include: {
            user: true
        }
    })
    return {
        s, h, e
    }
}